<?php
/**
 * Created by PhpStorm.
 * User: sunshubo
 * Date: 2017/12/17
 * Time: 22:56
 */

class CreateActiveInfo_control extends MY_Controller
{
    function index()
    {
        $body = $this->input->raw_input_stream;
        $this->load->model('active/createactiveinfo_model', 'create');
        $res = $this->create->create_info($body);
        if ($res) {
            $result = array('msg' => 'ok', 'id' => $res, 'result' => SUCCESS);
        } else {
            $result = array('msg' => 'err', 'id' => $res, 'result' => ERROR);
        }
        echo json_encode($result);
    }
}